﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input" 
    xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" 
    xmlns:lc="clr-namespace:slTestingStreaming"
    xmlns:slTestingStreaming_Controls="clr-namespace:slTestingStreaming.Controls"
    xmlns:ic="clr-namespace:Microsoft.Expression.Interactivity.Core;assembly=Microsoft.Expression.Interactions"
    xmlns:System="clr-namespace:System;assembly=mscorlib"
    xmlns:slTestingStreaming_Converters="clr-namespace:slTestingStreaming.Converters"
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" 
    xmlns:il="clr-namespace:Microsoft.Expression.Interactivity.Layout;assembly=Microsoft.Expression.Interactions"
    x:Class="slTestingStreaming.MainPage"
    d:DesignHeight="500" d:DesignWidth="900" MinWidth="420" MinHeight="561" Background="Transparent">
	<UserControl.Resources>
		<slTestingStreaming_Converters:VisibilityConverter x:Key="VisibilityConverter"/>
		<DataTemplate x:Key="dtTweet">
			<Grid Loaded="TweetListBoxItem_Loaded">
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="80" />
					<ColumnDefinition/>
				</Grid.ColumnDefinitions>
                <StackPanel Orientation="Vertical" HorizontalAlignment="Stretch" Grid.Column="1" Margin="8,0,0,0"  Grid.ColumnSpan="1" >
                    <StackPanel HorizontalAlignment="Stretch" Orientation="Horizontal" Cursor="Hand" Margin="0,0,0,0">
    					<TextBlock x:Name="tbUser" TextWrapping="Wrap" Text="{Binding user.name}" FontSize="12" FontWeight="Bold" FontStyle="Italic" HorizontalAlignment="Left" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment" MouseLeftButtonUp="MouseShowProfile"/>
    					<TextBlock TextWrapping="Wrap" Text="{Binding created_at}" FontSize="10.667" HorizontalAlignment="Right" VerticalAlignment="Top" />
    				</StackPanel>
                    <lc:myRichTextArea  Tweet="{Binding}" />
                </StackPanel>
                <Image Height="70" Margin="0,2,2,0" Grid.Column="0" Source="{Binding user.profile_image_url}" Stretch="UniformToFill" HorizontalAlignment="Right" VerticalAlignment="Top" Width="70" MouseLeftButtonUp="MouseSnapPicture" Cursor="Hand" >
					<Image.Effect>
						<DropShadowEffect ShadowDepth="0"/>
					</Image.Effect>
				</Image>
				<Grid Height="23" MaxHeight="70" MaxWidth="70" Margin="7,0,0,0" VerticalAlignment="Bottom" Visibility="Collapsed">
					<Image x:Name="icoStamp" Grid.ColumnSpan="1" Height="22" Source="Resources/Icons/GOM.png" Stretch="Fill" VerticalAlignment="Top" Width="22" HorizontalAlignment="Left" Margin="0,1,0,0" Cursor="Hand" ToolTipService.ToolTip="Tag user for bulk action" MouseLeftButtonUp="StampUser"/>
					<Image x:Name="icoComment" Grid.ColumnSpan="1" Height="22" Source="Resources/Icons/AIM.png" Stretch="Fill" VerticalAlignment="Top" Width="22" HorizontalAlignment="Left" Margin="21,0,0,0" Cursor="Hand" ToolTipService.ToolTip="Retweet/Reply" MouseLeftButtonUp="Retweet"/>
				</Grid>
				<Path Data="M58,67 L68,67" Height="1" Margin="8,0,0,0" Stretch="Fill" UseLayoutRounding="False" VerticalAlignment="Bottom" Grid.RowSpan="1" Grid.Column="1" Opacity="0.5">
					<Path.Effect>
						<DropShadowEffect ShadowDepth="0" BlurRadius="8"/>
					</Path.Effect>
					<Path.Stroke>
						<LinearGradientBrush EndPoint="0.128,0.417" StartPoint="0.865,0.417">
							<GradientStop Color="#FFC8C8C8" Offset="0"/>
							<GradientStop Color="Transparent" Offset="1"/>
						</LinearGradientBrush>
					</Path.Stroke>
				</Path>
			</Grid>
		</DataTemplate>
        <DataTemplate x:Key="dtFriendTweet">
            <Grid Loaded="TweetListBoxItem_Loaded">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="50" />
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <StackPanel Grid.ColumnSpan="2" Grid.Column="1" Margin="5,0,0,5" d:LayoutOverrides="Width">
                    <Grid  VerticalAlignment="Top">
                		<TextBlock TextWrapping="Wrap" Text="{Binding user.name}" FontSize="12" FontWeight="Bold" FontStyle="Italic" TextAlignment="Right" HorizontalAlignment="Left" VerticalAlignment="Top" FontFamily="{StaticResource DefaultFont}" d:LayoutOverrides="VerticalAlignment" Cursor="Hand" MouseLeftButtonUp="MouseShowProfile"/>
                		<TextBlock TextWrapping="Wrap" Text="{Binding created_at}" FontSize="10.667" TextAlignment="Right" HorizontalAlignment="Right" VerticalAlignment="Top" FontFamily="{StaticResource DefaultFont}"/>
                	</Grid>
                    <lc:myRichTextArea Tweet="{Binding}" />
                </StackPanel>
                <Image Height="40" Margin="0,2,2,0" Grid.Column="0" Source="{Binding user.profile_image_url}" Stretch="UniformToFill" HorizontalAlignment="Right" VerticalAlignment="Top" Width="40" MouseLeftButtonUp="MouseShowProfile" Cursor="Hand">
                    <Image.Effect>
                        <DropShadowEffect ShadowDepth="0"/>
                    </Image.Effect>
                </Image>
                <Path Grid.Column="1" Data="M58,67 L68,67" Height="1" Margin="8,0,0,0" Opacity="0.5" Grid.RowSpan="1" Stretch="Fill" UseLayoutRounding="False" VerticalAlignment="Bottom">
                	<Path.Effect>
                		<DropShadowEffect BlurRadius="8" ShadowDepth="0"/>
                	</Path.Effect>
                	<Path.Stroke>
                		<LinearGradientBrush EndPoint="0.128,0.417" StartPoint="0.865,0.417">
                			<GradientStop Color="#FFC8C8C8" Offset="0"/>
                			<GradientStop Color="Transparent" Offset="1"/>
                		</LinearGradientBrush>
                	</Path.Stroke>
                </Path>
                <Image x:Name="icoStamp" Grid.ColumnSpan="1" Height="22" Source="Resources/Icons/GOM.png" Stretch="Fill" VerticalAlignment="Top" Width="22" HorizontalAlignment="Left" Margin="7,45,0,0" Cursor="Hand" ToolTipService.ToolTip="Tag user for bulk action" MouseLeftButtonUp="StampFriend"/>
                <Image x:Name="icoComment" Grid.ColumnSpan="1" Height="22" Source="Resources/Icons/AIM.png" Stretch="Fill" VerticalAlignment="Top" Width="22" HorizontalAlignment="Left" Margin="28,44,0,0" Cursor="Hand" ToolTipService.ToolTip="Retweet/Reply" MouseLeftButtonUp="Retweet"/>
            </Grid>
        </DataTemplate>
        <DataTemplate x:Key="dtFriend">
            <Grid Loaded="TweetListBoxItem_Loaded">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="50" />
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <StackPanel Grid.ColumnSpan="2" Grid.Column="1" Margin="5,0,0,5" d:LayoutOverrides="Width">
                    <TextBlock TextWrapping="Wrap" Text="{Binding name}" FontSize="12" FontWeight="Bold" FontStyle="Italic" TextAlignment="Right" HorizontalAlignment="Left" VerticalAlignment="Top" FontFamily="{StaticResource DefaultFont}" Cursor="Hand"  MouseLeftButtonUp="MouseShowProfile"/>
                    <TextBlock TextWrapping="Wrap" Text="{Binding description}" VerticalAlignment="Top" FontFamily="{StaticResource DefaultFont}" FontSize="12"/>
                    <TextBlock TextWrapping="Wrap" Text="{Binding status.text}" VerticalAlignment="Top" FontFamily="{StaticResource DefaultFont}" FontSize="12" FontStyle="Italic" Foreground="#FF0069FB"/>
                </StackPanel>
                <Image Height="40" Margin="0,2,2,0" Grid.Column="0" Source="{Binding profile_image_url}" Stretch="UniformToFill" HorizontalAlignment="Right" VerticalAlignment="Top" Width="40" MouseLeftButtonUp="MouseShowProfile" Cursor="Hand">
                    <Image.Effect>
                        <DropShadowEffect ShadowDepth="0"/>
                    </Image.Effect>
                </Image>
                <Path Grid.Column="1" Data="M58,67 L68,67" Height="1" Margin="8,0,0,0" Opacity="0.5" Grid.RowSpan="1" Stretch="Fill" UseLayoutRounding="False" VerticalAlignment="Bottom">
                	<Path.Effect>
                		<DropShadowEffect BlurRadius="8" ShadowDepth="0"/>
                	</Path.Effect>
                	<Path.Stroke>
                		<LinearGradientBrush EndPoint="0.128,0.417" StartPoint="0.865,0.417">
                			<GradientStop Color="#FFC8C8C8" Offset="0"/>
                			<GradientStop Color="Transparent" Offset="1"/>
                		</LinearGradientBrush>
                	</Path.Stroke>
                </Path>
                <Image x:Name="icoStamp" Grid.ColumnSpan="1" Height="22" Source="Resources/Icons/GOM.png" Stretch="Fill" VerticalAlignment="Top" Width="22" HorizontalAlignment="Left" Margin="7,45,0,0" Cursor="Hand" ToolTipService.ToolTip="Tag user for bulk action" MouseLeftButtonUp="StampFriend" Visibility="Collapsed"/>
                <Image x:Name="icoComment" Grid.ColumnSpan="1" Height="22" Source="Resources/Icons/AIM.png" Stretch="Fill" VerticalAlignment="Top" Width="22" HorizontalAlignment="Left" Margin="28,44,0,0" Cursor="Hand" ToolTipService.ToolTip="Retweet/Reply" MouseLeftButtonUp="Retweet" Visibility="Collapsed"/>
            </Grid>
        </DataTemplate>
        <DataTemplate x:Key="dtBulkTweeter">
            <Grid Width="320" >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="29" />
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
            	<Grid Grid.Column="1" HorizontalAlignment="Stretch" d:LayoutOverrides="Width">
            		<TextBlock x:Name="tbUser" TextWrapping="Wrap" Text="{Binding name}" FontSize="12" FontWeight="Bold" FontStyle="Italic" TextAlignment="Right" HorizontalAlignment="Left" VerticalAlignment="Top" FontFamily="{StaticResource DefaultFont}" d:LayoutOverrides="HorizontalAlignment, VerticalAlignment" MouseLeftButtonUp="MouseShowProfile"/>
            		<Grid Background="#FFFFBE00" HorizontalAlignment="Left" Height="10" Visibility="{Binding isfriend, Converter={StaticResource VisibilityConverter}}" VerticalAlignment="Bottom" Width="28">
            			<TextBlock Foreground="Black" FontWeight="Bold" FontSize="9.333" FontFamily="{StaticResource DefaultFont}" HorizontalAlignment="Center" TextWrapping="Wrap" Text="Friend" VerticalAlignment="Center" d:LayoutOverrides="Width, Height"/>
            		</Grid>
            		<StackPanel HorizontalAlignment="Right" Orientation="Horizontal" VerticalAlignment="Center">
            			<CheckBox Content="" HorizontalAlignment="Center" HorizontalContentAlignment="Center" Padding="0" VerticalAlignment="Center" VerticalContentAlignment="Center" Width="25" IsChecked="{Binding ischecked}"/>
            			<Image x:Name="imgRemove" Cursor="Hand" Height="20" Source="Resources/Icons/Xion.png" Stretch="Fill" Width="20" Margin="5,0,0,0"/>
            		</StackPanel>
            	</Grid>
                <Image Height="25" Margin="0,2,2,0" Grid.Column="0" Source="{Binding profile_image_url}" Stretch="UniformToFill" HorizontalAlignment="Right" VerticalAlignment="Top" Width="25" MouseLeftButtonUp="MouseShowProfile" Cursor="Hand" >
                    <Image.Effect>
                        <DropShadowEffect ShadowDepth="0"/>
                    </Image.Effect>
                </Image>
            </Grid>
        </DataTemplate>
        <Storyboard x:Name="sbBounceBulkArea">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationY)" Storyboard.TargetName="grdBulkActions">
                <EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="0">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <BounceEase EasingMode="EaseIn" Bounces="2" Bounciness="1"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="grdBulkActions">
                <EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="-10">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <BounceEase EasingMode="EaseIn" Bounces="2" Bounciness="1"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </UserControl.Resources>
<Grid>
    <Rectangle x:Name="recResizeLeft" HorizontalAlignment="Left" Margin="0" Width="26" MouseLeftButtonDown="recResizeLeft_MouseLeftButtonDown" MouseLeftButtonUp="recResizeLeft_MouseLeftButtonUp" Cursor="SizeWE" StrokeThickness="0.2">
    	<Rectangle.Fill>
    		<LinearGradientBrush EndPoint="0.973,0.547" StartPoint="0.07,0.547">
    			<GradientStop Color="#FFA4A4A4"/>
    			<GradientStop Color="#00F7F7F7" Offset="0.118"/>
    		</LinearGradientBrush>
    	</Rectangle.Fill>
    	<Rectangle.Effect>
    		<DropShadowEffect ShadowDepth="0" BlurRadius="6"/>
    	</Rectangle.Effect>
    </Rectangle>
    <Rectangle x:Name="recResizeTop" Margin="3,0,0,0" VerticalAlignment="Top" Height="17" MouseRightButtonDown="recResizeTop_MouseRightButtonDown" MouseLeftButtonDown="recResizeTop_MouseLeftButtonDown" MouseLeftButtonUp="recResizeTop_MouseLeftButtonUp" Cursor="SizeNS">
    	<Rectangle.Fill>
    		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    			<GradientStop Color="#FFA4A4A4" Offset="0.024"/>
    			<GradientStop Color="Transparent" Offset="0.28"/>
    		</LinearGradientBrush>
    	</Rectangle.Fill>
    </Rectangle>
    <Rectangle x:Name="recResizeRight" HorizontalAlignment="Right" Margin="0,3,0,0" Width="26" MouseLeftButtonDown="recResizeRight_MouseLeftButtonDown" MouseLeftButtonUp="recResizeRight_MouseLeftButtonUp" Cursor="SizeWE">
    	<Rectangle.Fill>
    		<LinearGradientBrush EndPoint="0,0" StartPoint="1,0">
    			<GradientStop Color="#FFA4A4A4" Offset="0.087"/>
    			<GradientStop Color="Transparent" Offset="0.235"/>
    		</LinearGradientBrush>
    	</Rectangle.Fill>
    </Rectangle>
    <Rectangle x:Name="recResizeBottom" Margin="3,0" VerticalAlignment="Bottom" Height="23" MouseLeftButtonDown="recResizeBottom_MouseLeftButtonDown" MouseLeftButtonUp="recResizeBottom_MouseLeftButtonUp" Cursor="SizeNS">
    	<Rectangle.Fill>
    		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    			<GradientStop Color="#FFA4A4A4" Offset="0.879"/>
    			<GradientStop Color="Transparent" Offset="0.72"/>
    		</LinearGradientBrush>
    	</Rectangle.Fill>
    </Rectangle>
    <Grid x:Name="LayoutRoot" Background="Transparent" Loaded="LayoutRoot_Loaded" Margin="10">
    	<Grid.Effect>
    		<DropShadowEffect ShadowDepth="0" BlurRadius="12"/>
    	</Grid.Effect>
    	<Grid.ColumnDefinitions>
    		<ColumnDefinition Width="363"/>
    		<ColumnDefinition/>
    	</Grid.ColumnDefinitions>
    	<Grid.RowDefinitions>
    		<RowDefinition Height="80"/>
    		<RowDefinition Height="*"/>
			<RowDefinition Height="25"/>
    	</Grid.RowDefinitions>
    	<VisualStateManager.CustomVisualStateManager>
    		<ic:ExtendedVisualStateManager/>
    	</VisualStateManager.CustomVisualStateManager>
    	<VisualStateManager.VisualStateGroups>
    		<VisualStateGroup x:Name="GeneralStates" ic:ExtendedVisualStateManager.UseFluidLayout="True">
    			<VisualState x:Name="ShowTextEntry">
    				<Storyboard>
    					<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="grdTextEntry">
    						<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="171">
    							<EasingDoubleKeyFrame.EasingFunction>
    								<QuarticEase EasingMode="EaseInOut"/>
    							</EasingDoubleKeyFrame.EasingFunction>
    						</EasingDoubleKeyFrame>
    					</DoubleAnimationUsingKeyFrames>
    					<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Canvas.ZIndex)" Storyboard.TargetName="grdTextEntry">
    						<DiscreteObjectKeyFrame KeyTime="0">
    							<DiscreteObjectKeyFrame.Value>
    								<System:Int32>10</System:Int32>
    							</DiscreteObjectKeyFrame.Value>
    						</DiscreteObjectKeyFrame>
    					</ObjectAnimationUsingKeyFrames>
    				</Storyboard>
    			</VisualState>
    			<VisualState x:Name="HideTextEntry">
    				<Storyboard>
    					<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="grdTextEntry">
    						<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="258"/>
    					</DoubleAnimationUsingKeyFrames>
    					<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Canvas.ZIndex)" Storyboard.TargetName="grdTextEntry">
    						<DiscreteObjectKeyFrame KeyTime="0">
    							<DiscreteObjectKeyFrame.Value>
    								<System:Int32>0</System:Int32>
    							</DiscreteObjectKeyFrame.Value>
    						</DiscreteObjectKeyFrame>
    					</ObjectAnimationUsingKeyFrames>
    				</Storyboard>
    			</VisualState>
                <VisualState x:Name="ShowTextEntryLarge">
                    <Storyboard>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="grdTextEntry">
                            <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="37">
                                <EasingDoubleKeyFrame.EasingFunction>
                                	<QuarticEase EasingMode="EaseInOut"/>
                                </EasingDoubleKeyFrame.EasingFunction>
                            </EasingDoubleKeyFrame>
                        </DoubleAnimationUsingKeyFrames>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Canvas.ZIndex)" Storyboard.TargetName="grdTextEntry">
                        	<DiscreteObjectKeyFrame KeyTime="0">
                        		<DiscreteObjectKeyFrame.Value>
                        			<System:Int32>10</System:Int32>
                        		</DiscreteObjectKeyFrame.Value>
                        	</DiscreteObjectKeyFrame>
                        </ObjectAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
                <VisualState x:Name="HideTextEntryLarge">
                    <Storyboard>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="grdTextEntry">
                            <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="258"/>
                        </DoubleAnimationUsingKeyFrames>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Canvas.ZIndex)" Storyboard.TargetName="grdTextEntry">
                        	<DiscreteObjectKeyFrame KeyTime="0">
                        		<DiscreteObjectKeyFrame.Value>
                        			<System:Int32>0</System:Int32>
                        		</DiscreteObjectKeyFrame.Value>
                        	</DiscreteObjectKeyFrame>
                        </ObjectAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
                <VisualState x:Name="ShowBulkArea">
                	<Storyboard>
                		<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="grdBulkActions">
                			<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="-247">
                				<EasingDoubleKeyFrame.EasingFunction>
                					<QuarticEase EasingMode="EaseInOut"/>
                				</EasingDoubleKeyFrame.EasingFunction>
                			</EasingDoubleKeyFrame>
                		</DoubleAnimationUsingKeyFrames>
                		<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Canvas.ZIndex)" Storyboard.TargetName="grdBulkActions">
                			<DiscreteObjectKeyFrame KeyTime="0">
                				<DiscreteObjectKeyFrame.Value>
                					<System:Int32>10</System:Int32>
                				</DiscreteObjectKeyFrame.Value>
                			</DiscreteObjectKeyFrame>
                		</ObjectAnimationUsingKeyFrames>
                	</Storyboard>
                </VisualState>
                <VisualState x:Name="HideBulkArea">
                	<Storyboard>
                		<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="grdBulkActions">
                			<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
                		</DoubleAnimationUsingKeyFrames>
                		<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Canvas.ZIndex)" Storyboard.TargetName="grdBulkActions">
                			<DiscreteObjectKeyFrame KeyTime="0">
                				<DiscreteObjectKeyFrame.Value>
                					<System:Int32>0</System:Int32>
                				</DiscreteObjectKeyFrame.Value>
                			</DiscreteObjectKeyFrame>
                		</ObjectAnimationUsingKeyFrames>
                	</Storyboard>
                </VisualState>
            </VisualStateGroup>
    	</VisualStateManager.VisualStateGroups>
    	<Grid 
            x:Name="grdSnap" 
            DataContext="{Binding TwitterManager.SelectedTweetForPicture, Source={StaticResource ModelLocator}}"
            Grid.Column="1" Grid.Row="1" HorizontalAlignment="Center" MaxWidth="380" VerticalAlignment="Center">
            <Grid HorizontalAlignment="Center" Margin="10">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="50" />
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <Rectangle Grid.ColumnSpan="1" Grid.Column="1" Fill="White" RadiusY="1.75" RadiusX="1.75">
            		<Rectangle.Effect>
            			<DropShadowEffect BlurRadius="12" ShadowDepth="0"/>
            		</Rectangle.Effect>
            	</Rectangle>
                <Path Data="M51.5,12 L41.5,19.5 L53,23.5 z" Fill="White" HorizontalAlignment="Right" Height="11.5" Margin="0,12,-3,0" Stretch="Fill" UseLayoutRounding="False" VerticalAlignment="Top" Width="11.5"/>
                <Image Height="40" Margin="0,12,2,0" Grid.Column="0" Source="{Binding user.profile_image_url}" Stretch="UniformToFill" HorizontalAlignment="Left" VerticalAlignment="Top" Width="40" Cursor="Hand" >
                    <Image.Effect>
                        <DropShadowEffect ShadowDepth="0" BlurRadius="12"/>
                    </Image.Effect>
                </Image>
                <StackPanel Grid.ColumnSpan="2" Grid.Column="1" Margin="10" d:LayoutOverrides="Width">
                    <Grid VerticalAlignment="Top" Cursor="Hand">
                        <TextBlock TextWrapping="Wrap" Text="{Binding user.name}" FontSize="12" FontWeight="Bold" FontStyle="Italic" TextAlignment="Right" HorizontalAlignment="Left" VerticalAlignment="Top" FontFamily="{StaticResource DefaultFont}" />
                        <TextBlock TextWrapping="Wrap" Text="{Binding created_at}" FontSize="10.667" TextAlignment="Right" HorizontalAlignment="Right" VerticalAlignment="Top" FontFamily="{StaticResource DefaultFont}"/>
                    </Grid>
                    <lc:myRichTextArea Tweet="{Binding}" />
                </StackPanel>
            </Grid>
        </Grid>
    	<Rectangle x:Name="recBackgroundGradient" Grid.ColumnSpan="2" Grid.RowSpan="3" MouseLeftButtonDown="recBackgroundGradient_MouseLeftButtonDown" RadiusY="9" RadiusX="9">
    		<Rectangle.Fill>
    			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    				<GradientStop Color="#FFAF0000" Offset="0"/>
    				<GradientStop Color="#FF4B0000" Offset="0.5"/>
    				<GradientStop Color="#FF7A0000" Offset="0.099"/>
    				<GradientStop Color="#FF4B0000" Offset="0.69"/>
    			</LinearGradientBrush>
    		</Rectangle.Fill>
    	</Rectangle>
    	<Rectangle Fill="White" Grid.Row="1" Margin="0,-1,0,0" Grid.ColumnSpan="1"/>
    	<Rectangle Fill="White" Grid.Row="1" Margin="0,-1,0,0" Grid.ColumnSpan="1">
    		<Rectangle.Effect>
    			<DropShadowEffect ShadowDepth="4" Direction="-67" Opacity="0.5"/>
    		</Rectangle.Effect>
    	</Rectangle>
    	<Rectangle Grid.Column="1" Grid.Row="1" Fill="White" Margin="0,-1,0,0" d:IsHidden="True" Visibility="Collapsed"/>
    	<controls:TabControl x:Name="tcMain" Grid.RowSpan="1" Margin="0,-33,0,0" BorderBrush="{x:Null}" Grid.Row="1" SelectionChanged="tcMain_SelectionChanged" Grid.ColumnSpan="1" HorizontalContentAlignment="Left" Padding="0" VerticalContentAlignment="Top" Background="{x:Null}">
    		<controls:TabItem x:Name="tabAll" Header="Live Stream" Background="{x:Null}" Style="{StaticResource GeneralTabItemStyle}" Padding="2" HorizontalContentAlignment="Left" FontFamily="{StaticResource DefaultFont}" FontSize="12" Height="30" Width="75" Margin="-4,0,0,0" Cursor="Hand" BorderThickness="0">
    			<Grid/>
    		</controls:TabItem>
    		<controls:TabItem x:Name="tabFriendsTimeline" Header="Your Stream" Style="{StaticResource GeneralTabItemStyle}" Margin="3,0,0,0" Padding="5,2,6,2" HorizontalContentAlignment="Stretch" HorizontalAlignment="Left" Width="76" IsEnabled="False" FontFamily="{StaticResource DefaultFont}" FontSize="12" Height="30" Cursor="Hand">
    			<Grid/>
    		</controls:TabItem>
    		<controls:TabItem x:Name="tabFriends" Header="Friends" Style="{StaticResource GeneralTabItemStyle}" Margin="5,0,0,0" IsEnabled="False" FontFamily="{StaticResource DefaultFont}" FontSize="12" Height="30" Width="58" Cursor="Hand">
    			<Grid/>
    		</controls:TabItem>
    		<controls:TabItem x:Name="tabYourProfile" Header="Profile" Style="{StaticResource GeneralTabItemStyle}" Padding="7,2,6,2" HorizontalContentAlignment="Stretch" HorizontalAlignment="Right" Width="60" IsEnabled="False" FontFamily="{StaticResource DefaultFont}" FontSize="12" Height="30" Margin="5,0,0,0" Cursor="Hand">
    			<Grid/>
    		</controls:TabItem>
    		<controls:TabItem x:Name="tabYourLists" Header="Lists" Style="{StaticResource GeneralTabItemStyle}" Margin="4,0,0,0" Width="45" IsEnabled="False" FontFamily="{StaticResource DefaultFont}" FontSize="12" Visibility="Collapsed" Height="30" Cursor="Hand">
    			<Grid x:Name="tabLists"/>
    		</controls:TabItem>
    		<controls:TabItem x:Name="tabSettings" Header="Settings" BorderBrush="{x:Null}" Background="{x:Null}" Style="{StaticResource GeneralTabItemStyle2}" Margin="5,0,0,0" VerticalContentAlignment="Top" Width="70" FontFamily="{StaticResource DefaultFont}" FontSize="12" HorizontalContentAlignment="Left" HorizontalAlignment="Left" Height="30" Padding="0" Cursor="Hand">
    			<Grid/>
    		</controls:TabItem>
    	</controls:TabControl>
    	<Rectangle Height="25" Margin="0" Grid.Row="1" VerticalAlignment="Bottom">
    		<Rectangle.Fill>
    			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    				<GradientStop Color="#FF7E7D7D" Offset="0.997"/>
    				<GradientStop Color="White"/>
    				<GradientStop Color="#FFEFEDED" Offset="0.88"/>
    			</LinearGradientBrush>
    		</Rectangle.Fill>
    	</Rectangle>
    	<Rectangle HorizontalAlignment="Right" Grid.Row="1" Width="8">
    		<Rectangle.Fill>
    			<LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
    				<GradientStop Color="#FFBABABA" Offset="1"/>
    				<GradientStop Color="Transparent"/>
    				<GradientStop Color="#F9BBBBBB" Offset="0.771"/>
    			</LinearGradientBrush>
    		</Rectangle.Fill>
    	</Rectangle>
    	<Grid x:Name="grdLiveStream" Margin="0,4,5,0" Grid.Row="1" Grid.ColumnSpan="1" Visibility="Collapsed">
    		<ListBox x:Name="lbItems" Visibility="Visible" ItemTemplate="{StaticResource dtTweet}" BorderBrush="{x:Null}" Background="{x:Null}" HorizontalContentAlignment="Stretch" Style="{StaticResource lbGeneralStyle}" Grid.RowSpan="1" ScrollViewer.HorizontalScrollBarVisibility="Hidden" ItemsSource="{Binding TwitterManager.StreamingTweets, Source={StaticResource ModelLocator}}" d:LayoutOverrides="GridBox" ItemContainerStyle="{StaticResource GeneralListBoxItemStyle}" Margin="0,25" />
    		<StackPanel HorizontalAlignment="Right" Orientation="Horizontal" VerticalAlignment="Top" Width="40">
    			<Button x:Name="butPauseLive" Content="Pause" Width="40" Click="butPauseLive_Click" BorderBrush="{x:Null}" Background="{x:Null}" Cursor="Hand" FontFamily="{StaticResource DefaultFont}" />
    			<Button x:Name="butPlayLive" Content="Play" Visibility="Collapsed" Width="40" Click="butPlayLive_Click" BorderBrush="{x:Null}" Background="{x:Null}" Cursor="Hand" FontFamily="{StaticResource DefaultFont}"/>
    		</StackPanel>
    		<StackPanel HorizontalAlignment="Right" Margin="0,3,49,0" Orientation="Horizontal" VerticalAlignment="Top" Width="85">
    			<TextBlock FontSize="10.667" FontFamily="{StaticResource DefaultFont}" TextWrapping="Wrap" Text="Queued :" d:LayoutOverrides="Width"/>
    			<TextBlock FontSize="10.667" FontFamily="{StaticResource DefaultFont}" TextWrapping="Wrap" Text="{Binding TwitterManager.QueueCount, Source={StaticResource ModelLocator}}" Margin="2,0,0,0"/>
    		</StackPanel>
    		<TextBlock HorizontalAlignment="Right" TextWrapping="Wrap" Text="{Binding TwitterManager.LiveStreamCount, Source={StaticResource ModelLocator}}" VerticalAlignment="Bottom" FontFamily="{StaticResource DefaultFont}" Margin="0,0,5,5"/>
    	</Grid>
        <Grid x:Name="grdFriendsTweetStream" Margin="0,9,5,0" Grid.Row="1" Grid.ColumnSpan="1" Visibility="Collapsed">
            <ListBox x:Name="lbYourStream" Visibility="Visible" ItemTemplate="{StaticResource dtFriendTweet}" BorderBrush="{x:Null}" Background="{x:Null}" HorizontalContentAlignment="Stretch" Style="{StaticResource lbGeneralStyle}" Grid.RowSpan="1" ScrollViewer.HorizontalScrollBarVisibility="Hidden" ItemsSource="{Binding TwitterManager.FriendStatuses, Source={StaticResource ModelLocator}}" d:LayoutOverrides="GridBox" ItemContainerStyle="{StaticResource GeneralListBoxItemStyle}" Margin="0,0,0,25" />
            <TextBlock HorizontalAlignment="Right" TextWrapping="Wrap" Text="{Binding TwitterManager.FriendStatusesCount, Source={StaticResource ModelLocator}}" VerticalAlignment="Bottom" FontFamily="{StaticResource DefaultFont}" Margin="0,0,5,5"/>
        </Grid>
        <Grid x:Name="grdFriends" Grid.Row="1" Margin="0,9,5,0" Visibility="Collapsed" Grid.ColumnSpan="1">
    		<ListBox x:Name="lbFriends" ItemTemplate="{StaticResource dtFriend}" BorderBrush="{x:Null}" Background="{x:Null}" HorizontalContentAlignment="Stretch" Style="{StaticResource lbGeneralStyle}" Grid.RowSpan="1" ScrollViewer.HorizontalScrollBarVisibility="Hidden" ItemsSource="{Binding TwitterManager.Friends, Source={StaticResource ModelLocator}}" d:LayoutOverrides="GridBox" Margin="0,0,0,20" ItemContainerStyle="{StaticResource GeneralListBoxItemStyle}" />
    		<HyperlinkButton x:Name="hlNextFriends" Content="More" HorizontalAlignment="Center" VerticalAlignment="Bottom" Click="hlNextFriends_Click" Margin="0,0,0,3"/>
    	</Grid>
        <Grid x:Name="grdProfile" Grid.Row="1" Margin="0,9,5,0" Grid.ColumnSpan="1" DataContext="{Binding TwitterManager.SelectedProfile, Source={StaticResource ModelLocator}}" Visibility="Collapsed" >
        	<Image HorizontalAlignment="Left" Source="{Binding profile_image_url}" Height="109" Margin="8,8,0,0" VerticalAlignment="Top" Width="100" Stretch="Fill">
        		<Image.Effect>
        			<DropShadowEffect ShadowDepth="0" BlurRadius="12" Opacity="0.5"/>
        		</Image.Effect>
        	</Image>
        	<StackPanel Margin="119,21,8,0" Orientation="Vertical" VerticalAlignment="Top" Height="95">
        		<TextBlock TextWrapping="Wrap" Text="{Binding name}" FontFamily="{StaticResource DefaultFont}" FontSize="16" FontWeight="Bold" HorizontalAlignment="Left"/>
        		<TextBlock TextWrapping="Wrap" Text="{Binding description}" FontFamily="{StaticResource DefaultFont}" FontSize="13.333" HorizontalAlignment="Left" Margin="0,5,0,0"/>
        	</StackPanel>
        	<ListBox Margin="0,131,0,0" ItemsSource="{Binding TwitterManager.ProfileStatuses, Source={StaticResource ModelLocator}}" Background="{x:Null}" BorderBrush="{x:Null}" Style="{StaticResource lbGeneralStyle}" ItemContainerStyle="{StaticResource GeneralListBoxItemStyle}" ItemTemplate="{StaticResource dtTweet}"/>
        	<HyperlinkButton x:Name="hlYourProfile" Content="Your Profile" HorizontalAlignment="Right" VerticalAlignment="Top" Click="hlYourProfile_Click" Margin="0,0,5,0" />
        	<HyperlinkButton x:Name="hlYourMessages" Content="Your Messages" HorizontalAlignment="Right" VerticalAlignment="Top" Click="hlYourMessages_Click"  Margin="0,108,5,0" Visibility="Collapsed" />
        	<HyperlinkButton x:Name="hlDirectMessages" Content="Direct Messages" HorizontalAlignment="Right" VerticalAlignment="Top" Click="hlDirectMessages_Click" Margin="0,108,102,0" Visibility="Collapsed" />
        </Grid>
    	<Grid x:Name="grdSettings" Grid.Row="1" Grid.ColumnSpan="1" Visibility="Collapsed">
    		<StackPanel d:LayoutOverrides="Height, GridBox" VerticalAlignment="Top" Margin="11,14,11,0">
    			<dataInput:Label x:Name="label3" HorizontalContentAlignment="Right" Content="Live streaming words to track" d:LayoutOverrides="GridBox" FontSize="13.333" FontFamily="{StaticResource DefaultFont}" HorizontalAlignment="Left" Margin="0,0,0,5" />
    			<TextBox Height="75" x:Name="txtKeywords" VerticalAlignment="Bottom" d:LayoutOverrides="GridBox" Text="{Binding TwitterManager.StreamingUser.Keywords, Mode=TwoWay, Source={StaticResource ModelLocator}}" BorderBrush="#FFB8B8B8" Background="{x:Null}" FontSize="13.333" FontFamily="{StaticResource DefaultFont}" Style="{StaticResource GeneralTextBoxStyle}" TextWrapping="Wrap" />
    			<Button x:Name="butUpdateWords" Content="Update" Width="75" Margin="0,4,0,0" Click="butUpdateWords_Click" HorizontalAlignment="Right" Visibility="Collapsed"/>
    			<TextBlock Foreground="Red" FontStyle="Italic" FontSize="12" FontFamily="{StaticResource DefaultFont}" Margin="10,0" TextWrapping="Wrap"><Run FontStyle="Italic" Text="* You will need to "/><Run FontWeight="Bold" FontStyle="Italic" Text="restart"/><Run FontStyle="Italic" Text=" the application to see the updated keywords in your live stream."/></TextBlock>
    		</StackPanel>
            <StackPanel Margin="0,180,0,0" VerticalAlignment="Top" HorizontalAlignment="Stretch">
                <TextBlock Margin="5" HorizontalAlignment="Left" Foreground="Black" Text="Available AUDIO Sources" />
                <ListBox x:Name="AudioSources" Margin="5" Grid.Column="0" Background="{x:Null}" BorderBrush="{x:Null}" Style="{StaticResource lbGeneralStyle}" ItemContainerStyle="{StaticResource GeneralListBoxItemStyle}" >
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding FriendlyName}" />
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
                <TextBlock Margin="5" HorizontalAlignment="Left" Foreground="Black" Text="Available VIDEO Sources"  />
                <ListBox x:Name="VideoSources" Margin="5" Background="{x:Null}" BorderBrush="{x:Null}" Style="{StaticResource lbGeneralStyle}" ItemContainerStyle="{StaticResource GeneralListBoxItemStyle}" >
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding FriendlyName}" />
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
            </StackPanel>
    	</Grid>
    	<Grid x:Name="grdBrowser" Margin="5,4,5,0" Grid.Row="1" Background="White" MaxWidth="353" Visibility="Collapsed">
    		<Button x:Name="butBrowserClose" Content="Back" HorizontalAlignment="Right" BorderBrush="{x:Null}" Background="#FF850000" FontFamily="{StaticResource DefaultFont}" FontSize="10.667" Cursor="Hand" Click="butBrowserClose_Click" VerticalAlignment="Top" Margin="0,0,8,0" BorderThickness="0" Style="{StaticResource GeneralButtonStyle}" />
    		<Border Margin="7,25,7,30" BorderThickness="1" BorderBrush="#FFE0E0E0">
    			<Viewbox MaxWidth="333" Stretch="Fill">
    				<WebBrowser x:Name="ctlBrowser" d:LayoutOverrides="HorizontalAlignment, VerticalAlignment, HorizontalMargin" Width="{Binding Value, ElementName=sldBrowserHTMLWidth}" Height="{Binding Value, ElementName=sldBrowserHTMLHeight}"/>
    			</Viewbox>
    		</Border>
    		<TextBlock x:Name="lblBrowserUrl" TextWrapping="Wrap" VerticalAlignment="Top" FontFamily="{StaticResource DefaultFont}" Margin="7,0,71,0" Foreground="#FF787878" Height="20"/>
    		<slTestingStreaming_Controls:LoadingCursor x:Name="ctlBrowserLoading" HorizontalAlignment="Right" Height="20" Margin="0,0,46,0" VerticalAlignment="Top" Width="20"/>
    		<HyperlinkButton x:Name="hlkBrowserUrl" Content="Launch &gt;" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,9,5" TargetName="_blank"/>
    		<Slider x:Name="sldBrowserHTMLWidth" HorizontalAlignment="Left" Height="18" Margin="1,0,0,8" VerticalAlignment="Bottom" Width="90" Maximum="1440" Minimum="200" Value="1024" LargeChange="10" SmallChange="10" Style="{StaticResource GeneralSliderStyle}"/>
    		<Slider x:Name="sldBrowserHTMLHeight" HorizontalAlignment="Left" Height="18" Margin="98,0,0,8" VerticalAlignment="Bottom" Width="90" Maximum="2000" Minimum="200" Value="1200" LargeChange="10" SmallChange="10" Style="{StaticResource GeneralSliderStyle}"/>
    	</Grid>
    	<Grid x:Name="grdTextEntry" Margin="0,-254,0,0" Grid.Row="2" Height="279" RenderTransformOrigin="0.5,0.5" MouseEnter="grdTextEntry_MouseEnter" MouseLeave="grdTextEntry_MouseLeave" Visibility="Collapsed">
    		<Grid.RenderTransform>
    			<TransformGroup>
    				<ScaleTransform/>
    				<SkewTransform/>
    				<RotateTransform/>
    				<TranslateTransform Y="259"/>
    			</TransformGroup>
    		</Grid.RenderTransform>
    		<Path Data="M284.46759,0 L340.41815,0 C352.88971,3.8146973E-06 362.99994,9.9988289 362.99994,22.333004 L362.99994,28.999989 L362.99997,62.999992 L363,83 L363,192 L363,279 L0,279 L0,62.999992 L2.1636486E-05,28.999989 L261.88574,28.999989 L261.88574,22.333004 C261.88574,9.9988289 271.99597,3.8146973E-06 284.46759,0 z" Fill="White" Stretch="Fill" UseLayoutRounding="False">
    			<Path.Effect>
    				<DropShadowEffect BlurRadius="12" ShadowDepth="0"/>
    			</Path.Effect>
    		</Path>
    		<TextBox x:Name="txtTweet" TextWrapping="Wrap" FontFamily="{StaticResource DefaultFont}" FontSize="12" Style="{StaticResource GeneralTextBoxStyle}" Padding="2,2,20,2" Margin="7,37,7,6" AcceptsReturn="True" Height="66" VerticalAlignment="Top"/>
    		<Button x:Name="butSendTweet" Content="Send" HorizontalAlignment="Right" Margin="0,77,14,0" Width="33" Style="{StaticResource GeneralButtonStyle}" FontFamily="{StaticResource DefaultFont}" FontSize="10.667" Click="butSendTweet_Click" Height="19" VerticalAlignment="Top" Cursor="Hand"/>
    		<Image HorizontalAlignment="Right" Margin="0,-1,41,0" Source="Resources/Icons/AIM.png" Stretch="Fill" Width="20" Height="20" VerticalAlignment="Top"/>
    		

            <Grid Height="161" Margin="6,0,8,8" VerticalAlignment="Bottom" DataContext="{Binding TwitterManager.SelectedTweet, Source={StaticResource ModelLocator}}">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="50" />
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <Rectangle Grid.Column="1" Fill="#FFEDEDED" Margin="0,0,0,61"/>
                <Path Data="M49.5,15.5 L41.5,24 L50.5,29 z" Fill="#FFEDEDED" HorizontalAlignment="Right" Height="13.5" Margin="0,15.5,-1.5,0" Stretch="Fill" UseLayoutRounding="False" VerticalAlignment="Top" Width="9"/>
                <StackPanel Grid.ColumnSpan="2" Grid.Column="1" Margin="5,0,0,0" d:LayoutOverrides="Width">
                    <Grid VerticalAlignment="Top" Cursor="Hand" Margin="0,0,4,0">
                        <TextBlock x:Name="tbUser" TextWrapping="Wrap" Text="{Binding user.name}" FontSize="12" FontWeight="Bold" FontStyle="Italic" TextAlignment="Right" HorizontalAlignment="Left" VerticalAlignment="Top" FontFamily="{StaticResource DefaultFont}" d:LayoutOverrides="VerticalAlignment" MouseLeftButtonUp="MouseShowProfile"/>
                        <TextBlock TextWrapping="Wrap" Text="{Binding created_at}" FontSize="10.667" TextAlignment="Right" HorizontalAlignment="Right" VerticalAlignment="Top" FontFamily="{StaticResource DefaultFont}"/>
                    </Grid>
                    <lc:myRichTextArea Tweet="{Binding}" />
                </StackPanel>
                <Image Height="40" Margin="0,2,2,0" Grid.Column="0" Source="{Binding user.profile_image_url}" Stretch="UniformToFill" HorizontalAlignment="Left" VerticalAlignment="Top" Width="40" MouseLeftButtonUp="MouseShowProfile" Cursor="Hand" >
                    <Image.Effect>
                        <DropShadowEffect ShadowDepth="0"/>
                    </Image.Effect>
                </Image>
            </Grid>
            <Button x:Name="butCancelTweet" Content="Cancel" HorizontalAlignment="Right" Margin="0,0,7,43" Width="49" Style="{StaticResource GeneralButtonStyle}" FontFamily="{StaticResource DefaultFont}" FontSize="10.667" Click="butCancelTweet_Click" Height="19" VerticalAlignment="Bottom" Cursor="Hand"/>
            <Button x:Name="butTweet_Reply" Content="Reply" HorizontalAlignment="Left" Margin="57,0,0,43" Width="38" Style="{StaticResource GeneralButtonStyle}" FontFamily="{StaticResource DefaultFont}" FontSize="10.667" Click="butTweet_Reply_Click" Height="19" VerticalAlignment="Bottom" Cursor="Hand"/>
            <Button x:Name="butTweet_Retweet" Content="Retweet" HorizontalAlignment="Left" Margin="102,0,0,43" Width="49" Style="{StaticResource GeneralButtonStyle}" FontFamily="{StaticResource DefaultFont}" FontSize="10.667" Click="butTweet_Retweet_Click" Height="19" VerticalAlignment="Bottom" Cursor="Hand"/>


        </Grid>
    	<Grid x:Name="grdBulkActions" Margin="0,5,0,-259" Grid.Row="2" RenderTransformOrigin="0.5,0.5" MouseEnter="grdBulkActions_MouseEnter" MouseLeave="grdBulkActions_MouseLeave" Visibility="Collapsed">
    		<Grid.Projection>
    			<PlaneProjection/>
    		</Grid.Projection>
    		<Grid.RenderTransform>
    			<TransformGroup>
    				<ScaleTransform/>
    				<SkewTransform/>
    				<RotateTransform/>
    				<TranslateTransform/>
    			</TransformGroup>
    		</Grid.RenderTransform>
    		<Path Data="M174.625,0 L230.375,0 C242.87045,-2.682209E-07 253,10.129558 253,22.624998 L253,29 L363,29 L363,279 L0,279 L0,29 L152,29 L152,22.624998 C152,10.129558 162.12956,-2.682209E-07 174.625,0 z" Fill="White" Stretch="Fill" UseLayoutRounding="False">
    			<Path.Effect>
    				<DropShadowEffect ShadowDepth="0" BlurRadius="12"/>
    			</Path.Effect>
    		</Path>
    		<Image HorizontalAlignment="Left" Source="Resources/Icons/GOM.png" Stretch="Fill" Width="20" Height="20" VerticalAlignment="Top" Margin="194,0,0,0"/>
    		<ListBox 
                Margin="8,39,8,45" 
                BorderBrush="{x:Null}" 
                Background="{x:Null}" 
                ItemsSource="{Binding TwitterManager.BulkTweeters, Source={StaticResource ModelLocator}}"
                Style="{StaticResource lbGeneralStyle}" 
                ItemTemplate="{StaticResource dtBulkTweeter}" ItemContainerStyle="{StaticResource GeneralListBoxItemStyle}"/>
    		<Button x:Name="butBulkApply" Content="Apply" HorizontalAlignment="Right" Click="butBulkApply_Click" Width="49" Style="{StaticResource GeneralButtonStyle}" FontFamily="{StaticResource DefaultFont}" FontSize="10.667" Height="19" VerticalAlignment="Bottom" Cursor="Hand" Margin="0,0,9,20"/>
    	</Grid>
    	<StackPanel x:Name="spLoginSection" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.RowSpan="2" Grid.ColumnSpan="1">
    		<Grid Height="25" Margin="0,0,1,0">
    			<dataInput:Label HorizontalAlignment="Left" Margin="0,9,157,0" x:Name="label1" HorizontalContentAlignment="Right" Content="Username" d:LayoutOverrides="Height, GridBox" FontFamily="{StaticResource DefaultFont}" VerticalAlignment="Top" FontSize="13.333" />
    			<TextBox HorizontalAlignment="Left" Margin="62,0,0,0" x:Name="txtUserName" Text="{Binding TwitterManager.StreamingUser.UserName, Mode=TwoWay, Source={StaticResource ModelLocator}}" VerticalAlignment="Bottom" Width="154" d:LayoutOverrides="GridBox" Style="{StaticResource GeneralTextBoxStyle}" SelectionBackground="{StaticResource Brush_Pink}" FontFamily="{StaticResource DefaultFont}" FontSize="13.333" />
    		</Grid>
    		<Grid Height="25" Margin="0,5,1,0">
    			<dataInput:Label Content="Password" HorizontalAlignment="Left" HorizontalContentAlignment="Right" x:Name="label2" Margin="4,9,0,0" d:LayoutOverrides="Height, GridBox" FontFamily="{StaticResource DefaultFont}" VerticalAlignment="Top" FontSize="13.333" />
    			<PasswordBox x:Name="txtPassword" Margin="62,0,0,1" d:LayoutOverrides="Height" Password="{Binding TwitterManager.StreamingUser.Password, Mode=TwoWay, Source={StaticResource ModelLocator}}" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="154" Style="{StaticResource GeneralPasswordBoxStyle}" SelectionBackground="{StaticResource Brush_Pink}" FontFamily="{StaticResource DefaultFont}" FontSize="13.333"/>
    		</Grid>
    		<Button Content="Login" Height="25" HorizontalAlignment="Left" Margin="62,7,0,0" x:Name="butSubmit" VerticalAlignment="Top" Width="97" Click="butSubmit_Click" Style="{StaticResource GeneralButtonStyle}" FontFamily="{StaticResource DefaultFont}" FontSize="13.333" Cursor="Hand" />
    		<Button x:Name="butStop" Content="Stop" Width="75" Margin="10,0,0,0" Visibility="Collapsed"/>
    	</StackPanel>
    	<Grid x:Name="grdPlayArea" Grid.Column="1" Grid.Row="1"/>
    	<TextBlock HorizontalAlignment="Left" Margin="5,0,0,0" Grid.Row="2" TextWrapping="Wrap" Text="{Binding ChatManager.ConnectedUserCount, Source={StaticResource ModelLocator}}" VerticalAlignment="Bottom" Foreground="White" FontFamily="{StaticResource DefaultFont}"/>
    	<Grid x:Name="grdDisableLogin" Grid.Row="1" Width="297" Height="240">
    		<Rectangle Fill="White" Opacity="0.8" Grid.Row="1"/>
    		<TextBlock Height="30" TextWrapping="Wrap" Text="Are you sure your running this &quot;Out of Browser?&quot;" VerticalAlignment="Center" HorizontalAlignment="Center" TextAlignment="Center" Foreground="Red" Width="150" Margin="0,67,0,0"/>
    	</Grid>
    </Grid>
	</Grid>
</UserControl>
